package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.Types;
import java.util.Date;

/**
 * 竞技场战斗日志
 */
@FieldTypeAnnotation(tableName = "t_l_ck_cricket_court_battle", desc = "蛐蛐竞技场战斗日志", autoSave = true, uploadCk = true)
public class LogCricketCourtBattle extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "轮次id")
    private int round;

    @FieldTypeAnnotation(desc = "赛场id")
    private int courtId;

    @FieldTypeAnnotation(desc = "分组id")
    private int groupId;

    @FieldTypeAnnotation(desc = "对方id")
    private long targetUserId;

    @FieldTypeAnnotation(desc = "蛐蛐信息", sqlType = Types.LONGVARCHAR)
    private String cricketInfo = "";

    @FieldTypeAnnotation(desc = "对方蛐蛐信息", sqlType = Types.LONGVARCHAR)
    private String targetCricketInfo = "";

    @FieldTypeAnnotation(desc = "回合数")
    private String battleRound = "";

    @FieldTypeAnnotation(desc = "是否胜利")
    private boolean isWin;

    @FieldTypeAnnotation(desc = "获得促织积分")
    private long addRankScore;

    @FieldTypeAnnotation(desc = "现促织积分")
    private long rankScore;

    @FieldTypeAnnotation(desc = "奖励")
    private String rewards;

    public LogCricketCourtBattle(long userId, int round, int courtId, int groupId, long targetUserId, String cricketInfo, String targetCricketInfo, String battleRound, boolean isWin, long addRankScore, long rankScore, String rewards) {
        this.userId = userId;
        this.round = round;
        this.courtId = courtId;
        this.groupId = groupId;
        this.targetUserId = targetUserId;
        this.cricketInfo = cricketInfo;
        this.targetCricketInfo = targetCricketInfo;
        this.battleRound = battleRound;
        this.isWin = isWin;
        this.addRankScore = addRankScore;
        this.rankScore = rankScore;
        this.rewards = rewards;
    }

    public long getUserId() {
        return userId;
    }

}
